home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 449 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  40 lines

  1. Newsgroups: comp.lang.c++
  2. Path: br34.bearriver.com!dmurphy
  3. From: Duane Murphy <dmurphy@bearriver.com>
  4. Subject: Binary IOStreams?
  5. Sender: usenet@BearRiver.com (Usenet News)
  6. Message-ID: <DKny36.A0@BearRiver.com>
  7. Date: Thu, 4 Jan 1996 15:37:54 GMT
  8. X-Xxdate: Thu, 4 Jan 1996 03:36:13 GMT
  9. X-Xxmessage-Id: <AD11DCADAE014E22@br34.bearriver.com>
  10. Content-Transfer-Encoding: 8bit
  11. Content-Type: text/plain; charset=ISO-8859-1
  12. Nntp-Posting-Host: br34.bearriver.com
  13. Mime-Version: 1.0
  14. Organization: Bear River Associates
  15. X-Newsreader: Nuntius 2.0.4_PPC
  16.  
  17. Are IOStreams (the ios & streambuf hieararchy) always text streams? 
  18. Is there a way to make the become binary? Is there a seperate 
  19. specification or hierarchy for binary streams?
  20.  
  21. By binary streams I mean streams where operator>>(int) does _NOT_ 
  22. first convert to the text of the number but just emits its binary 
  23. representation (ie by calling streambuf::write()).
  24.  
  25. If I recall my reading in the IOStreams Handbook, the ios hieararchy 
  26. actually takes care of the translation and the streambuf is the 
  27. interface to the end point. Therefore it seems reasonable that one 
  28. could create a new ios type hieararchy customized for binary 
  29. streams. A kind of iosb (I originally write bios but that is an 
  30. overused name).
  31.  
  32. Has any one done this? Does this make sense?
  33.  
  34. Thanks for your comments?
  35.  
  36. ...Duane Murphy
  37.  
  38. Bear River Associates, Inc.
  39. dmurphy@bearriver.com
  40.